package com.woniuxy.userassembly.service.impl;

import com.woniuxy.userassembly.model.RbacPermissionRole;
import com.woniuxy.userassembly.dao.RbacPermissionRoleMapper;
import com.woniuxy.userassembly.service.IRbacPermissionRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Liyfi
 * @since 2021-05-22
 */
@Service
public class RbacPermissionRoleServiceImpl extends ServiceImpl<RbacPermissionRoleMapper, RbacPermissionRole> implements IRbacPermissionRoleService {
    @Autowired
    private RbacPermissionRoleMapper mapper;
    @Override
    public int addPermissionRole(RbacPermissionRole permissionRole) {
        int i = mapper.addPermissionRole(permissionRole);
        return i;
    }

    @Override
    public RbacPermissionRole selPermissionRole(int permissionRoleId) {
        RbacPermissionRole rbacPermissionRole = mapper.selPermissionRole(permissionRoleId);
        return rbacPermissionRole;
    }

    @Override
    public int delPermissionRole(int permissionRoleId) {
        int i = mapper.delPermissionRole(permissionRoleId);
        return i;
    }
}
